package panda.client.engine;

import java.io.Serializable;


/**
 * Serializable wrapper containing a MagicCard and its integer coordinates.
 * @author zane.tian@gmail.com
 */
public class MagicCardAndPos implements Serializable, InPlayAndPos {
	private static final long serialVersionUID = 5486925949513446355L;
	
	private int x;
	private int y;
	private MagicCard card;
	
	public MagicCardAndPos() {
		
	}
	
	public MagicCardAndPos(MagicCard card, int x, int y) {
		this.card = card;
		this.x = x;
		this.y = y;
	}
	
	public int getX() {
		return x;
	}
	
	public int getY() {
		return y;
	}
	
	public MagicCard getCard() {
		return card;
	}

	public long getServerID() {
		return card.getServerID();
	}
}